package com.example.front_back_separation_development.dto;

public class DeviceDTO {//DTO转接类
    private Integer Id;
    private String name;
    private String type;
    private String version;
    private Integer page;
    private Integer size;

    public DeviceDTO() {
    }

    public DeviceDTO(Integer id, String name, String type, String version, Integer page, Integer size) {
        Id = id;
        this.name = name;
        this.type = type;
        this.version = version;
        this.page = page;
        this.size = size;
    }

    public DeviceDTO(String name, Integer page, Integer size) {
        this.name = name;
        this.page = page;
        this.size = size;
    }

    public Integer getId() {
        return Id;
    }

    public void setId(Integer id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    @java.lang.Override
    public java.lang.String toString() {
        return "DeviceDTO{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", version='" + version + '\'' +
                ", page=" + page +
                ", size=" + size +
                '}';
    }
}